<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Result Declaration Board</title>
        <h:outputStylesheet name="css/layout.css"/>
        <h:outputScript name="js/hideshow.js"/>
        <h:outputScript name="js/jquery.tablesorter.min.js"/>
        <h:outputScript name="js/jquery.equalHeight.js"/>
        <script type="text/javascript">
            $(document).ready(function()
            {
                $(".tablesorter").tablesorter();
            }
            );
            $(document).ready(function() {

                //When page loads...
                $(".tab_content").hide(); //Hide all content
                $("ul.tabs li:first").addClass("active").show(); //Activate first tab
                $(".tab_content:first").show(); //Show first tab content

                //On Click Event
                $("ul.tabs li").click(function() {

                    $("ul.tabs li").removeClass("active"); //Remove any "active" class
                    $(this).addClass("active"); //Add "active" class to selected tab
                    $(".tab_content").hide(); //Hide all tab content

                    var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
                    $(activeTab).fadeIn(); //Fade in the active ID content
                    return false;
                });

            });
        </script>
        <script type="text/javascript">
            $(function() {
                $('.column').equalHeight();
            });
        </script>
    </h:head>

    <body>
        <header id="header">
            <hgroup>
                <h1 class="site_title"><a href="index.html">Website Admin</a></h1>
                <h2 class="section_title">Result Declaration Board</h2><div class="btn_view_site"><a href="http://www.medialoot.com">Dashboard</a></div>
            </hgroup>
        </header> <!-- end of header bar -->

        <section id="secondary_bar">
            <h:form>
                <div class="user">
                    <p>#{usersController.fullNameLogin} (<a href="#">3 Messages</a>)</p>
                    <!--		        <a class="logout_user" href="#" title="Logout">Logout</a>-->
                </div>
                <div class="breadcrumbs_container">
                    <article class="breadcrumbs"><ui:insert name="breadcrumbs"><a href="index.html">Website Admin</a> <div class="breadcrumb_divider"></div> <a class="current">Dashboard</a></ui:insert></article>
                </div>
            </h:form> 
        </section><!-- end of secondary bar -->

        <aside id="sidebar" class="column">
            <form class="quick_search">
                <input type="text" value="Quick Search" onfocus="if (!this._haschanged) {
                    this.value = ''
                }
                ;
                this._haschanged = true;" />
            </form>
            <hr/>
            <h:form rendered="#{usersController.userL.groupId.groupId == 2}">
                <h3>Exams</h3>
                <ul class="toggle">
                    <li class="icn_categories"><h:commandLink action="#{examsController.prepareList1()}" value="View Exams" /></li>
                    <li class="icn_new_article"><h:commandLink action="#{examsController.prepareCreate1()}" value="Create Exam" /></li>
                    <li class="icn_tags"><h:commandLink action="#{registersController.prepareList1()}" value="Register Recounting" /></li>
                </ul>
                <h3>Users</h3>
                <ul class="toggle">
                    <li class="icn_add_user"><h:commandLink action="#{usersController.prepareCreate1()}" value="Add New User" /></li>
                    <li class="icn_view_users"><h:commandLink action="#{usersController.prepareList1()}" value="View Users" /></li>
                    <li class="icn_profile"><h:link outcome="/faces/admin/users/ListSubject.xhtml" value="Faculties" /></li>
                </ul>
                <h3>Courses</h3>
                <ul class="toggle">
                    <li class="icn_folder"><h:commandLink action="#{coursesController.prepareList1()}" value="View Courses" /></li>
                    <li class="icn_new_article"><h:commandLink action="#{coursesController.prepareCreate1()}" value="Add New Course" /></li>
                </ul>
                <h3>Classes</h3>
                <ul class="toggle">
                    <li class="icn_folder"><h:commandLink action="#{classesController.prepareList1()}" value="View Classes" /></li>
                    <li class="icn_new_article"><h:commandLink action="#{classesController.prepareCreate1()}" value="Add New Class" /></li>
                </ul>
                <h3>Subject</h3>
                <ul class="toggle">
                    <li class="icn_folder"><h:commandLink action="#{subjectsController.prepareList1()}" value="View Subjects" /></li>
                    <li class="icn_new_article"><h:commandLink action="#{subjectsController.prepareCreate1()}" value="Add New Subject" /></li>
                </ul>
                <h3>Students</h3>
                <ul class="toggle">
                    <li class="icn_photo"><h:commandLink action="#{studentsController.prepareList1()}" value="View Students" /></li>
                    <li class="icn_settings"><h:commandLink action="#{studentsController.prepareCreate1()}" value="Add New Student" /></li>
                </ul>
            </h:form>
            <h:form>
                <h3>Admin</h3>
                <ul class="toggle">
                    <li class="icn_settings"><h:commandLink action="#{messagesController.prepareList1()}" value="Messages" /></li>
                    <li class="icn_security"><h:commandLink action="#{usersController.prepareChangePass()}" value="Change Password" /></li>
                    <li class="icn_jump_back"><h:commandLink action="#{usersController.logout()}" value="Logout" /></li>
                </ul>
            </h:form>
            <footer>
                <hr />
                <p><strong>Copyright &copy; 2013 Website Admin</strong></p>
                <p>Theme by <a href="http://www.medialoot.com">Group 1 - C0912L</a></p>
            </footer>
        </aside><!-- end of sidebar -->

        <section id="main" class="column">
            <ui:insert name="body">Default Body</ui:insert>
            <div class="spacer"></div>
        </section>
    </body>


</html>
